package org.looop.studio.bean.scope.impl;

import java.lang.reflect.InvocationTargetException;

import org.looop.studio.bean.domain.BeanDefinition;
import org.looop.studio.bean.factory.BeanFactory;
import org.looop.studio.bean.scope.BeanScope;

public class PrototypeScope implements BeanScope {

	@Override
	public Object getBean(BeanFactory factory, BeanDefinition beanDefinition) throws InstantiationException, IllegalAccessException, ClassNotFoundException, IllegalArgumentException, SecurityException, InvocationTargetException, NoSuchMethodException {
		return factory.createBean(beanDefinition);
	}

}
